import bloomersseeds2340.User

class BootStrap {

    def init = { servletContext ->
        def user = new User(email:"user@user.com", password:"password", role:"user").save()
        def admin = new User(email:"admin@user.com", 
                            password:"wordpass", 
                            role:"admin") 
       admin.save() 
       if(admin.hasErrors()){ 
         println admin.errors 
       } 
     
    }
    
    def destroy = {
    }
    
}
